package com.example.demo.service.impl;


import com.example.demo.mapper.GenerateMapper;
import com.example.demo.pojo.entity.GenerateHistory;
import com.example.demo.service.GenerateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class GenerateServiceImpl implements GenerateService {
    @Autowired
    private GenerateMapper  generateMapper;
    @Override
    public void save(GenerateHistory history) {
        LocalDateTime time = LocalDateTime.now();
        history.setCreateTime(time);
        generateMapper.save(history);
    }
}
